package com.example.pingze.repository;

import com.example.pingze.entity.PoemUserCollect;
import com.example.pingze.entity.PoetUserCollect;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface PoemUserCollectRepository extends JpaRepository<PoemUserCollect, String>, JpaSpecificationExecutor<PoemUserCollect> {
    List<PoemUserCollect> findPoemUserCollectByAccount(String account);

    PoemUserCollect findPoemUserCollectByAccountAndPoemId(String account, String poemId);

    PoemUserCollect findPoemUserCollectById(String id);
}
